import request from '@/util/request.js'
export const login = function (user = {}) {
  return request.post('/login', user, {
    isPublic: true,
  })
}

export const selectUserMenu = function () {
  return request.get('/menus')
}

export const selectTeacherOptions = function (params = {}) {
  return request.get('/auth/teacher', {
    params,
  })
}

export const selectDepartmentOptions = function (params = {}) {
  return request.get('/auth/faculties', {
    params,
  })
}

export const selectMajorOptions = function (params = {}) {
  return request.get('/auth/specialized', {
    params,
  })
}
export const selectClassOptions = function (params = {}) {
  return request.get('/auth/class', {
    params,
  })
}

export const selectManagerOptions = function (params = {}) {
  return request.get('/auth/role', {
    params,
  })
}
